import Mock from 'mockjs';

var datas = Mock.mock({
    'data|12':[
       { 
           "id|+1":0,
            "timg":"@image('74x74')",
            "ttitle":'@ctitle()',
            "ttext":'@csentence(5,6)'
    }
        
    ]
});

var chats = Mock.mock({
    'data|6':[
      {
        "id|+1":0,
        "cimg":"@image('40x40','#ff0')",
        "cname":"@cname()",
        "ctext":"@csentence(5,6)",
        "cdate":"@time('H:m')"
      }
    ]
});

var Imgdetails = Mock.mock({
  'data|1':[
    {
      "id|+1":0,
      "timg":"@image('336x511','#f2f2f2')",
      'limg':"@image('300x300','#f2f2f2')"
    }
  ]
});

var fdlist=Mock.mock({
	'food|2':[
		{
			"fid|+1":0,
			"imge":"@image('111x108','#fb0a2a')",
			"name":"@cname()",
			"text":"@csentence('200','300')"
		}
	]	
});

var lblist=Mock.mock({
	'list|3':[
		{
			"id|+1":0,
			"img":"@image('375x200','#fb0a2a')"
		}
	]	
});

// 我的z头像
var txzk = Mock.mock({
	'txzxk|1':[
		{
			"txid|+1":0,
      "img":"@image('90x90','#fb0a2a')",
      'num':"@integer(1,999)",
      'pnum':"@integer(1,9999)",
      "text":'@cword(3,3)',
      "time":'1个月20天'
		}
	]
});

// 生活
var livezk = Mock.mock({
	'livezxk|15':[
		{
			"liveid|+1":0,
			"img":"@image('74x74','#fb0a2a')",
			"name":"@cname()",//名字
			"text":"@csentence(1, 8)"//图片
		}
	]
});

// 关注
var Attentionzk = Mock.mock({
	'Attentionzxk|3':[
		{
			"Attentionid|+1":0,
			"img":"@image('44x44','#fb0a2a')",
			"name":"@cname()",//名字
			"time":"@csentence(1, 5)",//几秒前
			"year":"@csentence(1, 5)",//宝宝几岁
			"text":"@csentence(20, 30)",//文字
			"number":"@integer(60,1000)"//点赞数
		}
	]
});

// 购物车
var Cartzk = Mock.mock({
	'Cartzxk|1':[
		{
			"Cartid|+1":0,
			"img":"@image('300x300','#fb0a2a')",
			"name":"@cname()",//名字
			"prices":"@integer(60,1000)",//价格
			"number":"@integer(60,1000)",//数量
			"size01":"@integer(0,100)",//尺寸
			"size02":"@integer(0,100)",//尺寸
			"size03":"@integer(0,100)",//尺寸
			"size04":"@integer(0,100)",//尺寸
			"size05":"@integer(0,100)",//尺寸
			"beijing01":"@image('300x300','#71BAF9')",//可选颜色
			"beijing02":"@image('300x300','#FF84AD')",//可选颜色
			"beijing03":"@image('300x300','##FFB487')",//可选颜色
			"beijing04":"@image('300x300','#FFB487')",//可选颜色
			"beijing05":"@image('300x300','#FFB487')",//可选颜色
			"beijing06":"@image('300x300','#C8C8C8')",//可选颜色
			"beijing07":"@image('300x300','#C8C8C8')",//可选颜色
			"site":"@county(true)",//地址			
		}
	]
});

// 待收货
var Waitrecrivingzk = Mock.mock({
	'Waitrecrivingzxk|1':[
		{
			"Waitrecrivingid|+1":0,
			"time":"@csentence(5, 6)",//已用时长
			"name":"@cname()",//快递员名字			
			"img01":"@image('87x87','#fb0a2a')",//商品信息图片
			"img02":"@image('87x87','#fb0a2a')",//商品信息图片
			"img03":"@image('87x87','#fb0a2a')",//商品信息图片
			"price":"@integer(60,1000)",//商品总价
			"freight":"@integer(60,100)",//配送费
			"insurance":"@integer(10,50)",//运费险
			"order":"@integer()",//订单号		
		}
	]
});

// 时光记
var Torememberzk = Mock.mock({
	'Torememberzxk|1':[
		{
			"Torememberid|+1":0,
			"img":"@image('85x85','#fb0a2a')",//头像
			"name":"@cname()",//名字
			"time":"@csentence(1, 5)",//时间
			"Photo01":"@image('337x210','#fb0a2a')",//相册
			"Photo02":"@image('337x210','#fb0a2a')",//相册
			"Photo03":"@image('337x210','#fb0a2a')",//相册
		}
	]
});

// 优品
var Bestitemzk = Mock.mock({
	'Bestitemzxk|1':[
		{
			"Bestitemid|+1":0,
			"img":"@image('348x150','#fb0a2a')",//banner图
			"Coupon":"@image('348x50','#fb0a2a')",//优惠券
			"action01":"@image('44x44','#fb0a2a')",//功能分类
			"action02":"@image('44x44','#fb0a2a')",//功能分类
			"action03":"@image('44x44','#fb0a2a')",//功能分类
			"action04":"@image('44x44','#fb0a2a')",//功能分类
		}
	]
});

// 优品z商品推荐
var Bestitempzk = Mock.mock({
	'Bestitempzxk|12':[
		{
			"Bestitempid|+1":0,
			"img":"@image('86x86','#fb0a2a')",//商品图片
			"text":"@csentence(5, 9)",//描述
			"number":"@integer(60,1000)"//价格
		}
	]
});

// 清洁
var Cleanpagezk = Mock.mock({
	'Cleanpagezxk|8':[
		{
			"Cleanpageid|+1":0,
			"img":"@image('152x152','#fb0a2a')",//商品图片
			"text":"@csentence(5, 9)",//描述
			"number":"@integer(60,1000)"//价格
		}
	]
});

//文章
var Article = Mock.mock({
  'article|3':[
    {
      'textid|+1':0,
      'img':"@image('248x152','#abcdef')",
      'text':'@cparagraph(5,10)',
      'time':'@integer(1,12)',
      "name":'@cname()',
      'babytime':'@integer(1,5)',
      'userimg':"@image('44x44','#fedcba')",
      "attention":'@integer(10,9999)'
    }
  ]
});
var prolist = Mock.mock({
  "list|5-8":[
    {
      "id|+1":0,
      "name":"@name()",
      "desc":"@paragraph( 20, 30 )"
    }

  ]
});
var rememberList = Mock.mock({
  "list|8": [
    {
      'id|+1':0,
      "paragraph":'@cname()',
      "natural":"@natural(60, 100)",
	  "img":"@image('133x86','#123456')",
	  
    }
  ]
});

var Answer = Mock.mock({
	'list|3':[
		{
			'id|+1':0,
			"uname":'@cname()',
			"text":'@paragraph(5,15)',
			"uimg":"@image('30x30','#654321')",
			"attention":'@integer(10,9999)',
			"number":"@integer(60,200)"
		}
	]
});

var Babies = Mock.mock({
	'list|4':[
		{
			"id|+1":1,
			"uimg":"@image('110x110','#a1b2c3')",
			"title":"@cparagraph(1)",
			"text1":"@cparagraph(1)",
			"text2":"@cparagraph(1)",
			"price":"@integer(10,9999)"

		}
	]
});

var Thechatpage1 = Mock.mock({
	'list|5':[
		{
			"id|+1":0,
			"uimg":"@image('50x50','#a2b4c6')",
			"uname":"@cname()",
			"text":"@cparagraph(1)"
		}
	]
});

var Thechatpage2 = Mock.mock({
	'list|5':[
		{
			"id|+1":0,
			"uimg":"@image('50x50','#a2b4c6')",
			"time":"@datetime('HH:mm:ss')",
			"text":"@cparagraph(1)"
		}
	]
})

Mock.mock('http://www.thechatpage1.com',Thechatpage1)

Mock.mock('http://www.thechatpage2.com',Thechatpage2)

Mock.mock('http://www.babies.com/api',Babies)

Mock.mock('http://www.answer.com/api',Answer)

Mock.mock('http://www.remenber.com/api',rememberList)


Mock.mock('http://www.zhulei.com/api',prolist)

//文章
Mock.mock("http://www.chenwenzhang/api",Article)

// 我的z头像
Mock.mock("http://www.txzxk.com/api",txzk);
// 生活
Mock.mock("http://www.livezxk.com/api",livezk);
// 关注
Mock.mock("http://www.Attentionzxk.com/api",Attentionzk);
// 购物
Mock.mock("http://www.Cartzxk.com/api",Cartzk);
// 待收货
Mock.mock("http://www.Waitrecrivingtzxk.com/api",Waitrecrivingzk);
// 时光记
Mock.mock("http://www.TorememberTorememberzxk.com/api",Torememberzk);
// 优品
Mock.mock("http://www.Bestitemzxk.com/api",Bestitemzk);
// 优品z商品推荐
Mock.mock("http://www.Bestitempzxk.com/api",Bestitempzk);
// 清洁
Mock.mock("http://www.Cleanpagezxk.com/api",Cleanpagezk);

Mock.mock("http://www.lunbo.com/api",lblist);
Mock.mock('http://www.touxiang.com/api',datas);
Mock.mock('http://www.liaotian.com/api',chats);
Mock.mock('http://www.liaotian.com/api/imgdatails',Imgdetails);
Mock.mock("http://www.food.com/api",fdlist);